<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pybindgen.typehandlers.ctypeparser.TypeTraits</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pybindgen-module.html">Package&nbsp;pybindgen</a> ::
        <a href="pybindgen.typehandlers-module.html">Package&nbsp;typehandlers</a> ::
        <a href="pybindgen.typehandlers.ctypeparser-module.html">Package&nbsp;ctypeparser</a> ::
        Class&nbsp;TypeTraits
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class TypeTraits</h1><p class="nomargin-top"><span class="codelink"><a href="pybindgen.typehandlers.ctypeparser-pysrc.html#TypeTraits">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_pybindge_101" name="uml_class_diagram_for_pybindge_101">
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#ctype" title="the original unmodified type (a CType object, apply str() to obtain a type &#160;string)." alt="" coords="17,28,161,47"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#ctype_no_modifiers" title="the type with all modifiers (const, volatile, ...) removed (except from &#160;template arguments)" alt="" coords="17,47,161,65"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#target" title="if this is a pointer or reference type, a CType representing the target, &#160;without modifiers." alt="" coords="17,65,161,84"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#target_is_const" title="True if the type is pointer or reference and the target is const" alt="" coords="17,84,161,103"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#type_is_const" title="True if the outermost type is const" alt="" coords="17,103,161,121"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#type_is_pointer" title="True if the outermost type is a pointer" alt="" coords="17,121,161,140"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#type_is_reference" title="True if the outermost type is a reference" alt="" coords="17,140,161,159"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#__init__" title="x.__init__(...) initializes x; see x.__class__.__doc__ for signature" alt="" coords="17,161,161,180"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#make_const" title="Add a const modifier to the type." alt="" coords="17,180,161,199"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#make_target_const" title="Add a const modifier to the type target." alt="" coords="17,199,161,217"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html" title="Parse a C type and gather some interesting properties." alt="" coords="16,11,163,219"/>
</map>
  <img src="uml_class_diagram_for_pybindge_101.gif" alt='' usemap="#uml_class_diagram_for_pybindge_101" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>Parse a C type and gather some interesting properties.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Instance Methods</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">ctype</span>)</span><br />
      x.__init__(...) initializes x; see x.__class__.__doc__ for signature</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.ctypeparser-pysrc.html#TypeTraits.__init__">source&nbsp;code</a></span>
            <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for___init___73-summary-div');return false;">call&nbsp;graph</a></span>&nbsp;
          </td>
        </tr>
      </table>
      <div style="display:none" id="call_graph_for___init___73-summary-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for___init___73" name="call_graph_for___init___73">
<area shape="rect" href="pybindgen.gccxmlparser.ModuleParser-class.html#_scan_class_methods" title="gccxmlparser.ModuleParser._scan_class_methods()" alt="" coords="5,61,485,93"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#__init__" title="__init__()" alt="" coords="535,117,639,149"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeHandler-class.html#__init__" title="base.TypeHandler.__init__()" alt="" coords="109,117,381,149"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#lookup" title="base.TypeMatcher.lookup()" alt="" coords="113,173,377,205"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.CType-class.html#__init__" title="CType.__init__()" alt="" coords="760,5,925,37"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.CType-class.html#clone" title="CType.clone()" alt="" coords="771,61,915,93"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.CType-class.html#remove_modifiers" title="CType.remove_modifiers()" alt="" coords="713,117,972,149"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.CType-class.html#remove_outer_modifier" title="CType.remove_outer_modifier()" alt="" coords="688,173,997,205"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser-module.html#parse_type" title="parse_type()" alt="" coords="775,229,911,261"/>
</map>
  <img src="call_graph_for___init___73.gif" alt='' usemap="#call_graph_for___init___73" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#make_const" class="summary-sig-name">make_const</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Add a const modifier to the type.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.ctypeparser-pysrc.html#TypeTraits.make_const">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#make_target_const" class="summary-sig-name">make_target_const</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Add a const modifier to the type target.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="pybindgen.typehandlers.ctypeparser-pysrc.html#TypeTraits.make_target_const">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__delattr__</code>,
      <code>__format__</code>,
      <code>__getattribute__</code>,
      <code>__hash__</code>,
      <code>__new__</code>,
      <code>__reduce__</code>,
      <code>__reduce_ex__</code>,
      <code>__repr__</code>,
      <code>__setattr__</code>,
      <code>__sizeof__</code>,
      <code>__str__</code>,
      <code>__subclasshook__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== INSTANCE VARIABLES ==================== -->
<a name="section-InstanceVariables"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Instance Variables</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="ctype"></a><span class="summary-name">ctype</span><br />
      the original unmodified type (a <a 
      href="pybindgen.typehandlers.ctypeparser.CType-class.html" 
      class="link">CType</a> object, apply str() to obtain a type string).
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="ctype_no_modifiers"></a><span class="summary-name">ctype_no_modifiers</span><br />
      the type with all modifiers (const, volatile, ...) removed (except 
      from template arguments)
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#target" class="summary-name">target</a><br />
      if this is a pointer or reference type, a <a 
      href="pybindgen.typehandlers.ctypeparser.CType-class.html" 
      class="link">CType</a> representing the target, without modifiers.
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="target_is_const"></a><span class="summary-name">target_is_const</span><br />
      True if the type is pointer or reference and the target is const
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="type_is_const"></a><span class="summary-name">type_is_const</span><br />
      True if the outermost type is const
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="type_is_pointer"></a><span class="summary-name">type_is_pointer</span><br />
      True if the outermost type is a pointer
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
        <a name="type_is_reference"></a><span class="summary-name">type_is_reference</span><br />
      True if the outermost type is a reference
    </td>
  </tr>
</table>
<!-- ==================== PROPERTIES ==================== -->
<a name="section-Properties"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Properties</span></td>
</tr>
  <tr>
    <td colspan="2" class="summary">
    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
      <code>__class__</code>
      </p>
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Method Details</span></td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">ctype</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.typehandlers.ctypeparser-pysrc.html#TypeTraits.__init__">source&nbsp;code</a></span>&nbsp;
    <br /><span class="codelink"><a href="javascript:void(0);" onclick="toggleCallGraph('call_graph_for___init___73-div');return false;">call&nbsp;graph</a></span>&nbsp;</td>
  </tr></table>
  <div style="display:none" id="call_graph_for___init___73-div"><center>
<table border="0" cellpadding="0" cellspacing="0">
  <tr><td><center>  <map id="call_graph_for___init___73" name="call_graph_for___init___73">
<area shape="rect" href="pybindgen.gccxmlparser.ModuleParser-class.html#_scan_class_methods" title="gccxmlparser.ModuleParser._scan_class_methods()" alt="" coords="5,61,485,93"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.TypeTraits-class.html#__init__" title="__init__()" alt="" coords="535,117,639,149"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeHandler-class.html#__init__" title="base.TypeHandler.__init__()" alt="" coords="109,117,381,149"/>
<area shape="rect" href="pybindgen.typehandlers.base.TypeMatcher-class.html#lookup" title="base.TypeMatcher.lookup()" alt="" coords="113,173,377,205"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.CType-class.html#__init__" title="CType.__init__()" alt="" coords="760,5,925,37"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.CType-class.html#clone" title="CType.clone()" alt="" coords="771,61,915,93"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.CType-class.html#remove_modifiers" title="CType.remove_modifiers()" alt="" coords="713,117,972,149"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser.CType-class.html#remove_outer_modifier" title="CType.remove_outer_modifier()" alt="" coords="688,173,997,205"/>
<area shape="rect" href="pybindgen.typehandlers.ctypeparser-module.html#parse_type" title="parse_type()" alt="" coords="775,229,911,261"/>
</map>
  <img src="call_graph_for___init___73.gif" alt='' usemap="#call_graph_for___init___73" ismap="ismap" class="graph-without-title" />
</center></td></tr>
  <tr><th>Call Graph</th></tr>
</table><br />
</center></div>

  <p>x.__init__(...) initializes x; see x.__class__.__doc__ for 
  signature</p>
  <dl class="fields">
    <dt>Overrides:
        object.__init__
        <dd><em class="note">(inherited documentation)</em></dd>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="make_const"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">make_const</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.typehandlers.ctypeparser-pysrc.html#TypeTraits.make_const">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Add a const modifier to the type.  Has no effect if the type is 
  already const.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<a name="make_target_const"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">make_target_const</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="pybindgen.typehandlers.ctypeparser-pysrc.html#TypeTraits.make_target_const">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Add a const modifier to the type target.  Has no effect if the type 
  target is already const.</p>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== INSTANCE VARIABLE DETAILS ==================== -->
<a name="section-InstanceVariableDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Instance Variable Details</span></td>
</tr>
</table>
<a name="target"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <h3 class="epydoc">target</h3>
  if this is a pointer or reference type, a <a 
  href="pybindgen.typehandlers.ctypeparser.CType-class.html" 
  class="link">CType</a> representing the target, without modifiers.  If 
  not pointer or reference, it is None.
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>t = TypeTraits(<span class="py-string">&quot;int&quot;</span>)
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype))
<span class="py-output">'int'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype_no_modifiers))
<span class="py-output">'int'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_const
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_pointer
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_reference
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.target <span class="py-keyword">is</span> None
<span class="py-output">True</span></pre>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>t = TypeTraits(<span class="py-string">&quot;const int * const&quot;</span>)
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype))
<span class="py-output">'int const * const'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype_no_modifiers))
<span class="py-output">'int *'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype_no_const))
<span class="py-output">'int const *'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_const
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_pointer
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_reference
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.target <span class="py-keyword">is</span> None
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.target))
<span class="py-output">'int'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.target_is_const
<span class="py-output">True</span></pre>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>t = TypeTraits(<span class="py-string">&quot;int * const&quot;</span>)
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype))
<span class="py-output">'int * const'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype_no_modifiers))
<span class="py-output">'int *'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype_no_const))
<span class="py-output">'int *'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_const
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_pointer
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_reference
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.target <span class="py-keyword">is</span> None
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.target))
<span class="py-output">'int'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.target_is_const
<span class="py-output">False</span></pre>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>t = TypeTraits(<span class="py-string">&quot;const char *&quot;</span>)
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype))
<span class="py-output">'char const *'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype_no_modifiers))
<span class="py-output">'char *'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype_no_const))
<span class="py-output">'char const *'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_const
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_pointer
<span class="py-output">True</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.type_is_reference
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.target <span class="py-keyword">is</span> None
<span class="py-output">False</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.target))
<span class="py-output">'char'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.target_is_const
<span class="py-output">True</span></pre>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>t = TypeTraits(<span class="py-string">&quot;char *&quot;</span>)
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype))
<span class="py-output">'char *'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.make_const()
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype))
<span class="py-output">'char * const'</span>
<span class="py-output"></span><span class="py-prompt">&gt;&gt;&gt; </span>t.make_target_const()
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">print</span> repr(str(t.ctype))
<span class="py-output">'char const * const'</span></pre>
  <dl class="fields">
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pybindgen-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Jul 12 17:23:34 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
